home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-19
/
pkey12_1.zip
/
DL.LSP
< prev
next >
Wrap
Text File
|
1992-09-13
|
575b
|
20 lines
;Multiple delete layers based on selection (BE VERY VERY CAREFULL)
;Any mishaps can be undone. Merely type U at the command line and
;press return.
;
;
(defun C:dl ()
(princ "\nDelete Layers - Select one object on each layer to be deleted")
(setq ss (ssget))
(setq counter 0)
(prompt "Deleting layers...")
(while
(setq e (ssname ss counter))
(setq l (cdr (assoc 8 (entget e))))
(setq S (ssget "X" (list (cons 8 l))))
(progn
(command "erase" s ""))
(setq counter (+ counter 1))
(princ l)(princ ", ")
(princ)))
(princ "\nType DL to execute.")